package com.go.timer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;

import java.util.Timer;

@Slf4j
public class TimerThread extends Thread {

    @Value("${small.timeout}")
    private int timeout;

    @Override
    public void run() {
        log.error("timer 线程已启动=========== timeout : "+timeout);
        new Timer().schedule(new MyTimerTask(""), 10000);
    }
}
